<?php
defined('_JEXEC') or die('Restricted access'); 
?>
<form action="index.php?option=com_debate" method="post" name="adminForm">
<div id="editcell">
    <table class="adminlist">
		<thead>
			<tr>
				<th width="5">
					<?php echo JText::_( 'ID' ); ?>
				</th>
				<th>
					<?php echo JText::_( 'Name' ); ?>
				</th>
				<th>
					<?php echo JText::_( 'Email' ); ?>
				</th>
			</tr>            
		</thead>
		
		<?php
		//var_dump($this->items);
		$k = 0;
		foreach ($this->items as $key => &$row)
		{
			$checked    = JHTML::_( 'grid.id', $key, $row->id );
			?>
			<tr class="<?php echo "row" . $key; ?>">
				<td>
					<?php echo $checked; ?>
				</td>
				<td>
					<?php echo $row->id; ?>
				</td>
				<td>
					<?php echo $row->name; ?>
				</td>
				<td>
					<?php echo $row->email; ?>
				</td>
			</tr>
			<?php
			$k = 1 - $k;
		}
		?>
    </table>
</div>
 
<input type="hidden" name="option" value="com_debate" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="debate" />
 
</form>
